package com.aaa.system.service;

import com.aaa.entity.Menu;
import com.aaa.vo.Result;

import java.util.List;

/**
 * @author Lei
 * @create 2023-03-20 16:43
 */
public interface MenuService {

    public List<Menu> findByUserid(Long userId);

    Result<List<Menu>> getLeftMenu();

    Result<List<Menu>> getTreeAll();

    Result<List<Integer>> findByRoleId(Long roleId);

    Result<List<Menu>> confirmMenu(Long roleId, Long[] menuIds);

    Result<List<Menu>> selectAll(Menu menu);

    Result<Boolean> saveOrUpdateMenu(Menu menu);

    Result<Boolean> deleteMenuByIds(Long menuId);
}
